Learning Objectives

After completing this lesson, you'll be able to:

In this lesson, you will:

Learning Objectives

After completing this lesson, you'll be able to:

In this lesson, you will:

Resources

Sending Emails

FME Flow Automations can send email notifications to external clients using the Email (send) external action. The Email action requires you to authenticate and validate a connection to an external SMTP email server. Flow uses this email server to send the outgoing emails. 

While there are many SMTP connection parameters to configure, FME Flow offers a Load Template option that makes the process a bit easier. You may select email connection templates for Gmail, Outlook, Office 365, or Yahoo. With a template, FME Flow defines the SMTP Server and Port for the email server you are using. You must still fill in your SMTP Account, SMTP Password, and any other connection parameters. 

In the Email Details, you also set the email recipients and configure the subject, body, and an optional email attachment. You may send emails to multiple recipients, and optionally carbon copy or blind carbon copy recipients. 

Many of the Email parameters also allow you to use Output Attributes and Automation Parameters to further customize and control your outgoing emails with information from previous actions in the automation. For example, you can set the Email Subject to include the job status of the previous workspace action, attach the job log or any file from Resources, and customize the email body with more information about the automation. 

It's easiest to customize the outputs using the Text Editor, where you can select from all the available Output Attributes.

With the previous settings, FME Flow generates an email that looks like this when the automation triggers and runs.

Emailer and Email Action Comparison

You may also be familiar with the Emailer transformer, which sends emails from within workspaces. The Emailer is similar to the Email external action; however, key differences will help you select the most appropriate one for your workflow. 

You configure an Emailer with almost the same SMTP account parameters; however, you can use a web connection to access your SMTP email account.  

Advantages of using the Emailer include:

Advantages of the Email action in Automations include:

Exercise

Note

This exercise continues where the Process Incoming Data exercise left off. You should complete the previous exercise then continue with this exercise.

Jennifer continues with her Incoming Building Updates automation. The automation has a Resource or Network Directory trigger that watches for files added to an FME Flow Resources folder, and a Filter action that filters shapefiles. Then, it runs a workspace to process incoming files. It's vital to update the geodatabase with the most recent construction updates, so Jennifer would like to be notified when the workspace runs and its translation status is available. 

In this exercise, you will: 

1) Open Automation

2) Add External Action

3) Configure Email Action

You will configure the action to use a Gmail account for the SMTP credentials.

Note

This Gmail account password changes regularly. Please only use it for FME training purposes, or configure your SMTP account for the Email action. 

4) Save and Start Automation

5) Upload Shapefiles

6) Inspect Email

You've now built an entire workflow with FME Flow Automations. You use a trigger to watch for new files, filter them, and run a workspace if they meet the condition. Once your workspace translation is complete, FME Flow sends an email with the job completion status and job log. Jennifer can now monitor her automation from her inbox and let it run and process incoming shapefiles without any repetitive manual effort. 

Resources

Sending Emails

FME Flow Automations can send email notifications to external clients using the Email (send) external action. The Email action requires you to authenticate and validate a connection to an external SMTP email server. Flow uses this email server to send the outgoing emails. 

While there are many SMTP connection parameters to configure, FME Flow offers a Load Template option that makes the process a bit easier. You may select email connection templates for Gmail, Outlook, Office 365, or Yahoo. With a template, FME Flow defines the SMTP Server and Port for the email server you are using. You must still fill in your SMTP Account, SMTP Password, and any other connection parameters. 

In the Email Details, you also set the email recipients and configure the subject, body, and an optional email attachment. You may send emails to multiple recipients, and optionally carbon copy or blind carbon copy recipients. 

Many of the Email parameters also allow you to use Output Attributes and Automation Parameters to further customize and control your outgoing emails with information from previous actions in the automation. For example, you can set the Email Subject to include the job status of the previous workspace action, attach the job log or any file from Resources, and customize the email body with more information about the automation. 

It's easiest to customize the outputs using the Text Editor, where you can select from all the available Output Attributes.

With the previous settings, FME Flow generates an email that looks like this when the automation triggers and runs.

Emailer and Email Action Comparison

You may also be familiar with the Emailer transformer, which sends emails from within workspaces. The Emailer is similar to the Email external action; however, key differences will help you select the most appropriate one for your workflow. 

You configure an Emailer with almost the same SMTP account parameters; however, you can use a web connection to access your SMTP email account.  

Advantages of using the Emailer include:

Advantages of the Email action in Automations include:

Exercise

Note

This exercise continues where the Process Incoming Data exercise left off. You should complete the previous exercise then continue with this exercise.

Jennifer continues with her Incoming Building Updates automation. The automation has a Resource or Network Directory trigger that watches for files added to an FME Flow Resources folder, and a Filter action that filters shapefiles. Then, it runs a workspace to process incoming files. It's vital to update the geodatabase with the most recent construction updates, so Jennifer would like to be notified when the workspace runs and its translation status is available. 

In this exercise, you will: 

1) Open Automation

2) Add External Action

3) Configure Email Action

You will configure the action to use a Gmail account for the SMTP credentials.

Note

This Gmail account password changes regularly. Please only use it for FME training purposes, or configure your SMTP account for the Email action. 

4) Save and Start Automation

5) Upload Shapefiles

6) Inspect Email

You've now built an entire workflow with FME Flow Automations. You use a trigger to watch for new files, filter them, and run a workspace if they meet the condition. Once your workspace translation is complete, FME Flow sends an email with the job completion status and job log. Jennifer can now monitor her automation from her inbox and let it run and process incoming shapefiles without any repetitive manual effort.